#coding=utf-8

from fetchContent import FetchContent

f = open("c:\\url.txt",'rb')
list_line = f.readlines()
for line in list_line:
    print "ok"
    lineArray = line.split("$")
    print lineArray[1]
    #print isinstance(lineArray[0],unicode)
    fetchText = FetchContent(lineArray[1], unicode(lineArray[0],'utf8','ignore').encode('gb2312','ignore'))
    fetchText.fetch()
print "finish"
    